import { baseUrlApi, requestClient, type Result } from '#/api/request';

// 用户请求参数
interface UserParams {
  user_id?: string;
  keyword?: string;
}

/** 第三方用户列表 */
export const getUserOauthUsers = (params?: UserParams) => {
  return requestClient.get<Result>(baseUrlApi('/admin/user/oauth/users'), {
    params,
  });
};

/**
 * 删除第三方用户绑定
 * @param id
 * @returns
 */
export const deleteUserOauthUsers = (id: number) => {
  return requestClient.delete<Result>(
    baseUrlApi(`/admin/user/oauth/users/${id}`),
  );
};
